MAKE                =	make
CC                  =	gcc
EXE                 =   test
LINK                =	-g -pedantic -Wall -lstdc++ -lpthread -ldl -lm -Wl,-rpath,.
COMPILE	            =	-g -O0 -D_THREAD_SAFE -Wextra -pedantic -Wall -c -fPIC -Wno-deprecated 

all:first.o main.o
	$(CC) $(LINK) main.o first.o -o $(EXE)

first.o:
	$(CC) $(COMPILE) first.c

main.o:
	$(CC) $(COMPILE) main.c

clean:
	rm -rf *.o $(EXE)
